<?php
$caption = BUtils::T('password_find_caption_lbl');
$this->pageTitle = $caption;
?>
<div class="row-fluid">
	<div class="span12">
		<div class="login-container">
			<div class="space-6" style="margin-top:48px;"></div>
			<div class="center">
				<h1>
					<span class="blue">Yamii</span>
					<span class="blue">for Business</span>
				</h1>
				<h4 class="red"><?php echo BUtils::T('yb_brief'); ?></h4>
			</div>
			<div class="space-6"></div>
<div class="row-fluid">
	<div class="box_white span12">
		<div class="biz-form">
<?php if (Yii::app()->user->hasFlash('done')) { ?>
			<div class="margin">
				<h3 class="header blue lighter bigger">
					<i class="icon-key"></i> <?php echo $caption; ?>
				</h3>
				<div class="clearfix"></div>
				<div class="alert alert-block alert-success">
					<p>
						<i class="icon-ok"></i>
						<?php echo Yii::app()->user->getFlash('done'); ?>
					</p>
					<p class="text-right">
						<?php echo CHtml::link(BUtils::T('login_lbl'), Yii::app()->createUrl('/accounts/login'), array('class' => 'btn btn-info')); ?>
					</p>
				</div>
			</div>
<?php } else { ?>
			<div class="margin">
				<div class="pull-right">
					<?php BHelper::HtmlLanguageButtons(); ?>
				</div>
				<h3 class="header blue lighter bigger">
					<i class="icon-key"></i> <?php echo $caption; ?>
				</h3>
				<div class="clearfix"></div>
				<div class="tips"><?php echo BUtils::T('password_find_caption_eg'); ?></div>
			</div>
<?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
	<div class="fieldswrap">
	<div class="fields">
		<div class="block">
			<div class="lbl"><?php echo $form->labelEx($model,'email'); ?></div>
			<div class="ipt">
				<span class="input-icon input-icon-right span12">
					<?php echo $form->textField($model,'email', array('class'=>'span12')); ?>
					<i class="icon-envelope"></i>
				</span>
				<div class="clearfix"></div>
				<?php echo $form->error($model,'email'); ?>
			</div>
		</div>
		<div class="block center">
			<?php echo CHtml::submitButton(BUtils::T('confirm_btn'), array('class' => 'btn btn-large btn-primary span4')); ?>
		</div>
	</div><!-- end of .fields -->
	</div><!-- end of .fieldswrap -->
	<?php if (Yii::app()->user->hasFlash('error')) { ?>
	<div class="fieldswrap" style="background:#fee;">
		<div class="fields"><?php echo Yii::app()->user->getFlash('error'); ?></div>
	</div>
	<?php } ?>
	<div class="margin">
		<?php echo CHtml::link(BUtils::T('login_lbl'), Yii::app()->createUrl('/accounts/login')); ?>
	</div>
<?php $this->endWidget(); ?>
<?php } ?>
		</div><!-- end of <div class="biz-form"> -->
	</div>
</div>
		</div>
	</div>
</div>